#include <QCoreApplication>
#include "Link.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    //初始化SDK
    Link::init();

    //创建音频输入模块
    LinkObject *ai=Link::create("InputAi");
    QVariantMap dataAi;
    dataAi["interface"]="Line-In";
    ai->start(dataAi);

    //创建音频输出模块
    LinkObject *ao=Link::create("OutputAo");
    QVariantMap dataAo;
    dataAo["interface"]="Line-Out";
    ao->start(dataAo);

    //连接数据流(音频输入->输出)
    ai->linkA(ao);

    return a.exec();
}

